
const TokenKey = 'Admin-Token'
const PackageIdKey = 'packageId'
const CurrentYearKey = 'currentYearKey'
const CurrentMonthKey = 'currentMonthKey'

export function getToken() {
  return localStorage.getItem(TokenKey)
}

export function setToken(token) {
  return localStorage.setItem(TokenKey, token)
}

export function setPackageId(packageId) {
  return localStorage.setItem(PackageIdKey, packageId)
}

export function getPackageId() {
  return localStorage.getItem(PackageIdKey)
}

export function setCurrentYear(currentYear) {
  return localStorage.setItem(CurrentYearKey, currentYear)
}

export function getCurrentYear() {
  return localStorage.getItem(CurrentYearKey)
}

export function setCurrentMonth(currentMonth) {
  return localStorage.setItem(CurrentMonthKey, currentMonth)
}

export function getCurrentMonth() {
  return localStorage.getItem(CurrentMonthKey)
}

export function removeToken() {
  return localStorage.removeItem(TokenKey)
}
